import { connect } from "dva"
// import Pager from "../Pager"
import { Pagination } from 'antd';

const mapStateToProps = state=>({
    current:state.students.condition.page,
    total:state.students.result.total,
    panelNumber:5,
    showQuickJumper:true
})

const mapDispatchToProps = dispatch=>({
    onChange(newPage){
        dispatch({
            type:"students/setCondition",
            payload:{
                page: newPage
            }
        })
    }
})

export default connect(mapStateToProps, mapDispatchToProps)(Pagination);